package com.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ fileName:book
 * @ description:
 * @ author:dzh
 * @ createTime:2022/4/29 15:01
 * @ version:1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book {
    private Integer bookId;
    private String bookName;
    private String author;
    private String bookImg;
    private String publisher;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date pubDate;
    private Integer categoryId;
    private Category category;
    private Double inPrice;
    private Double outPrice;

}
